package jdbc;

import jdbc.InputUtil.InputField;
public class Article {
    @InputField(title = "标题",notNull = true,mode = {"文章"})
    private String title;
    @InputField(title = "内容",notNull = true,mode = {"文章"})
    private String content;

    // 无参构造
    public Article(){}

    // get和set

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    // 重写toString方法

    @Override
    public String toString() {
        return "Article{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
